<script>
	var common = require('./utils/common.js');
	var callbackObj = null;
	var callackConfigObj = null;
	var isSpreadReport = false;
	var _this;
	var tabBarDefault = common.$platConfig.appTabbarDefault

	export default {
		data() {
			return {};
		},
		globalData: {
			open_multilingual: false,
			haveHomePage: false,
			userInfo: null,
			config: null,
			typeList: null,
			storeInfo: null,
			// 当前进入的店铺信息
			isPay: false,
			// 是否进入支付页
			systemInfo: null,
			//客户端设备信息
			tabBarHave: false,
			tabBar: null,
			timer: '',
			is_login: false,
			door_share_id: '',
			scene: '',
			open_door_type: true,
			tabweb: {},
			// wx.switch跳转到webview时的参数
			languageData: null,
			// 当前系统语言包
			homeRedirect: null,
			// list[0]页面打开时是否需要跳转
			shareRedirect: '', // 分享首页跳转
			storeData: {},
			shopCategoryList: {},
			shopTypeList: {},
			shopSortList: {},
			delivery_address: null, // 快店首页选择的地址
			mainColorFont: '',
			mainColorBg: '',
			getAlipayScope: false,
			isAliapp: false,
			isWxapp: false,
			platSearchKey: '', // 平台搜索页关键字
			shopVilliageBind: {}, // 快店店铺与小区绑定集合
			tabbarBusiness: {}, //业务用的底部导航
			live_id: 0, //当前直播的房间ID 
			video_id: 0, //短视频id
			author_id: 0, //作者id  
			//跑腿相关
			sendGoods: '',
			buyGoodsDesc: '',
			selectBuyAddress: false,
			selectedShop: {},
			shopAddress: '',
			goodsTypeList: [],
			sendStart: '',
			sendEnd: '',
			buyStart: '',
			buyEnd: '',
			myMapAddress: '',
			defaultBuyStart: false
		},



		onError: function(msg) {
			var systemInfo = wx.getSystemInfoSync();
			var pages = getCurrentPages();
			var nowPage = '';

			if (pages.length > 0 && pages[pages.length - 1].route) {
				nowPage = pages[pages.length - 1].route;
			}

			common.post('Config&a=wxapp_error_report', {
				msg: msg,
				systemInfo: systemInfo,
				noTip: true,
				nowPage: nowPage
			}, function() {}, this);
		},
		onLaunch: function(options) {
			console.log('app onLaunch')
			console.log('小程序启动参数', options);
			_this = this;
			_this.$options.globalData.scene = options.scene;
			uni.hideTabBar();

			if (options.query && options.query.page_from == 'otherWxapp' && options.query.ticket) {
				uni.setStorageSync('ticket', options.query.ticket);
			}

			_this.loginagin();
		},

		onShow(options) {
			console.log('app onShow', options)
			// #ifdef MP-WEIXIN
			_this.upDataApp();
			// #endif

			// #ifdef H5
			let login_status = common.$dataStorage.cookie.get('login_status')
			let ticket = ''
			let device = ''

			// cookie中缓存的，一般用于 PHP页面跳转
			if (login_status && login_status == 'login') {
				ticket = common.$dataStorage.cookie.get('user_ticket')
				device = common.$dataStorage.cookie.get('user_device_id')
			} else {
				console.log('清除ticket', login_status)
				_this.$options.globalData.is_login = false
				window.localStorage.removeItem('packapp_ticket')
				window.localStorage.removeItem('packapp_user')
				window.localStorage.removeItem('packapp_device')
				uni.removeStorageSync('ticket')
				uni.removeStorageSync('device')
			}

			// userAgent中的，一般用于APP的页面
			if (common.$checkPlat.checkApp()) {
				var reg = /device-id=(.*?),/;
				var arr = reg.exec(navigator.userAgent);
				if (arr !== null) {
					device = arr[1];
				}

				var reg = /ticket=(.*?),/;
				var arr = reg.exec(navigator.userAgent);
				if (arr !== null) {
					ticket = arr[1];
				}
			}

			if (ticket) {
				console.log('111111111111111111111122 ticket', ticket)
				uni.setStorageSync('ticket', ticket)
				uni.setStorageSync('device', device)
				common.device_id = device;
				_this.$options.globalData.userInfo = JSON.parse(window.localStorage.getItem('packapp_user'))
			}
			// #endif

			// #ifdef MP-ALIPAY
			if (this.$options.globalData.getAlipayScope) {
				this.$options.globalData.getAlipayScope = false
			}
			// #endif

			if (uni.getStorageSync('ticket')) {
				_this.$options.globalData.is_login = true;
				//尝试自动获取用户信息
				if (!_this.$options.globalData.userInfo) {
					common.post('Login&a=login', {

					}, data => {
						_this.$options.globalData.userInfo = data.user;
					}, _this, data => {
						wx.showModal({
							title: '提示',
							content: data.data.errorMsg,
							showCancel: false,
							success: function(res) {
								_this.logout();
							}
						})
					});
				}
			} else {
				_this.$options.globalData.is_login = false;
			}

			if (!isSpreadReport) {
				let spread_uid = ''
				if (options && options.query && options.query.spread_uid) {
					spread_uid = options.query.spread_uid
				} else if (uni.getStorageSync('spread_uid')) {
					spread_uid = uni.getStorageSync('spread_uid')
				}

				console.log('_this.$options.globalData.is_login', _this.$options.globalData.is_login);
				console.log('_this.$options.globalData.userInfo', _this.$options.globalData.userInfo);
				if (_this.$options.globalData.is_login && _this.$options.globalData.userInfo && _this.$options.globalData
					.userInfo.uid && spread_uid) {
					isSpreadReport = true
					common.reportSpread(spread_uid)
				} else if (!_this.$options.globalData.is_login && spread_uid) {
					uni.setStorageSync('spread_uid', spread_uid)
				}
			}


			if (options.query.type) {
				console.log("参数列表-", `/pages/shop_new/goodsDetail/goodsDetail?` + this.queryParams(options.query))
				if (options.query.type == 'goodsDetail') {
					let data = this.queryParams(options.query)
					uni.navigateTo({
						url: `/pages/shop_new/shopDetail/shopDetail?${data}`,
						complete() {
							setTimeout(() => {
								uni.navigateTo({
									url: `/pages/shop_new/goodsDetail/goodsDetail?${data}`
								})
							}, 1000)
						}
					})
				}
			}

		},


		methods: {

			queryParams(data, isPrefix = false) {
				let prefix = isPrefix ? '?' : ''
				let _result = []
				for (let key in data) {
					let value = data[key]
					// 去掉为空的参数
					if (['', undefined, null].includes(value)) {
						continue
					}
					if (value.constructor === Array) {
						value.forEach(_value => {
							_result.push(encodeURIComponent(key) + '[]=' + encodeURIComponent(_value))
						})
					} else {
						_result.push(encodeURIComponent(key) + '=' + encodeURIComponent(value))
					}
				}

				return _result.length ? prefix + _result.join('&') : ''
			},

			onPageNotFound(res) {
				console.log('监听页面是否存在', res);

				if (res.path == 'pages/shop_new/index/index' || res.path.indexOf('pages/shop/') >= 0) {
					wx.switchTab({
						url: '/pages/shop_index/index'
					});
				} else {
					wx.switchTab({
						url: '/pages/plat_menu/index'
					});
				}
			},
			loginagin() {
				wx.removeStorage({
					key: 'scanList'
				});

				// #ifdef MP-WEIXIN
				wx.getStorage({
					key: 'togetherId',
					success: function(res) {
						wx.showModal({
							title: common.changeTxt('拼单提示'),
							content: common.changeTxt('您发起的快店拼单还未完成，是否继续该拼单？'),
							success: btn => {
								if (btn.confirm) {
									wx.reLaunch({
										url: `/pages/shop_new/shopDetail/shopDetail?store_id=${res.data.store_id}&together=true&uid=${res.data.uid}`
									});
								} else {
									wx.removeStorage({
										key: 'togetherId'
									});
									wx.removeStorage({
										key: 'together_cart'
									});
								}
							}
						});
					}
				});
				// #endif
				console.log('app.vue', _this);
				_this.$options.globalData.systemInfo = uni.getSystemInfoSync();
				console.log('开始登陆 执行getConfig')
				_this.getConfig();
			},

			//获取 国家/地区 区号
			getNationalPhone(callFunc) {
				if (_this.$options.globalData.national_list) {
					callFunc(_this.$options.globalData.national_list);
				} else {
					common.post('Config&a=getNationalPhone', {}, function(result) {
						_this.$options.globalData.national_list = result;
						callFunc(_this.$options.globalData.national_list);
					});
				}
			},

			// 请求语言包
			getLanguagePack(language) {
				common.post('Lang&a=get', {
					lang: language,
					from: 'wxapp'
				}, data => {
					if (data) {
						_this.$options.globalData.languageData = data;
					} else {
						_this.$options.globalData.languageData = {};
					}

					if (_this.$options.globalData.config.footer_menu_list.length == 0) {
						tabBarDefault.list.map(item => {
							item.text = common.changeTxt(item.text);
							return item
						})
					}
				});
			},

			homeIsRedirect() {
				var redirectTimer = setInterval(() => {
					if (_this.$options.globalData.homeRedirect != null) {
						clearInterval(redirectTimer);

						if (_this.$options.globalData.homeIsRedirect != '') {
							var redirectData = _this.$options.globalData.homeRedirect;
							_this.$options.globalData.homeRedirect = '';

							if (redirectData.type == 'webview') {
								common.parseUrl(decodeURIComponent(redirectData.url), '', false, redirectData
									.webview_title ?
									decodeURIComponent(redirectData.title) : '');
							} else if (redirectData.type == 'page') {
								var tmppage = decodeURIComponent(redirectData.page);

								if (tmppage.indexOf('/') !== 0) {
									tmppage = '/' + tmppage;
								}

								wx.navigateTo({
									url: tmppage
								});
							}
						}
					}
				}, 100);
			},

			checkIsHome(nowpage, redirect, url, title) {
				var listTimer = setInterval(() => {
					if (_this.$options.globalData.tabBar && _this.$options.globalData.tabBar.list.length > 0) {
						clearInterval(listTimer);
						var list = _this.$options.globalData.tabBar.list;
						var exist = false;

						for (var i = 0; i < list.length; i++) {
							if (list[i].pagePath == nowpage) {
								exist = true;
								break;
							}
						}

						if (exist) {
							return;
						}

						if (list[0].pagePath.indexOf('/pages/') === 0) {
							wx.reLaunch({
								url: list[0].pagePath
							});
						} else {
							// 首页是webview页面
							if (list.length > 1) {
								common.parseUrl(list[0].pagePath);
							} else {
								_this.$options.globalData.tabWeb = {
									url: list[0].pagePath,
									title: list[0].text
								};
								wx.reLaunch({
									url: '/pages/webview/tab_webview'
								});
							}
						}
					}
				}, 200); // 判断当前页是否是在tabbar中
			},

			// 检查版本更新
			upDataApp: function() {
				console.log('调用检查更新方法');

				if (wx.canIUse('getUpdateManager')) {
					const updateManager = wx.getUpdateManager(); // 请求检查更新

					updateManager.onCheckForUpdate(function(res) {
						if (res.hasUpdate) {
							// 新版本下载成功回调
							updateManager.onUpdateReady(function() {
								wx.showModal({
									title: common.changeTxt('更新提示'),
									content: common.changeTxt('新版本已经准备好，是否重启应用？'),
									success: function(res) {
										if (res.confirm) {
											// 强制重启更新
											updateManager.applyUpdate();
										}
									}
								});
							}); // 新的版本下载失败回调

							updateManager.onUpdateFailed(function() {
								wx.showModal({
									title: common.changeTxt('更新提示'),
									content: common.changeTxt('新版本已经上线啦~，请您删除当前小程序，重新搜索打开哟~')
								});
							});
						}
					});
				} else {
					wx.showModal({
						title: common.changeTxt('提示'),
						content: common.changeTxt('当前微信版本过低，部分功能无法使用，建议更新微信到最新版本。')
					});
				}
			},

			//调用此方法参考 pages/my/number ，需要确保用户已登录，param里需要传解密参数，type值目前可以为 change_user_phone（失败报错，成功返回用户信息、同登录） ， get_phone（返回对象，手机国家区号，手机号）
			getUserWxPhone: function(param, callFunc) {
				common.post("Wxapp&a=getUserWxPhone", param, function(result) {
					uni.setStorageSync('ticket', result.ticket);
					callFunc(result);
				});
			},
			logout() {
				_this.$options.globalData.is_login = false
				_this.$options.globalData.userInfo = null;
				uni.removeStorageSync('ticket');

				// #ifdef H5
				common.$dataStorage.cookie.set('login_status', 'logout')
				window.localStorage.removeItem('packapp_ticket')
				window.localStorage.removeItem('packapp_user')
				window.localStorage.removeItem('packapp_device')
				uni.removeStorageSync('device')
				uni.removeStorageSync('ticket')
				uni.removeStorageSync('device')
				// #endif
			},


			getConfig: function(cb) {
				console.log('调用app.vue的getConfig')
				let config = _this.$options.globalData.config
				if (config) {
					_this.$options.globalData.open_multilingual = config.config.open_multilingual == 1 ? true : false
					if (_this.$options.globalData.open_multilingual) {
						uni.setStorageSync('now_lang', config.config.lang_config.now_lang);
						_this.getLanguagePack(config.config.lang_config.now_lang);
					}
					typeof cb == "function" && cb(config);
				} else {
					config = wx.getStorageSync('wxapp_config');
					common.post('Config&a=index', {}, function(result) {
						config = result
						wx.setStorageSync('wxapp_config', result);
						_this.getConfigAfter(result, cb);
					}, _this, function(err) {
						wx.showModal({
							title: common.changeTxt('提示'),
							content: err.errorMsg ? err.errorMsg : common.changeTxt(
								'111页面加载错误，请检查您的网络！'),
							showCancel: false,
							success: err => {
								if (err.confirm) {
									_this.loginagin();
								}
							}
						});
					});
				}
			},
			getConfigAfter(result, cb) {
				//多语言
				console.log('config.result', result);
				console.log('config.cb', cb);
				_this.$options.globalData.open_multilingual = result.config.open_multilingual == 1
				if (result.config.open_multilingual == 1) {
					uni.setStorageSync('now_lang', result.config.lang_config.now_lang);
					_this.getLanguagePack(result.config.lang_config.now_lang);
				}
				// 自定义底部导航
				tabBarDefault.backgroundColor = result.footer_menu_bgcolor ? result.footer_menu_bgcolor : tabBarDefault
					.backgroundColor;
				tabBarDefault.selectedColor = result.footer_menu_txtactivecolor ? result.footer_menu_txtactivecolor :
					tabBarDefault
					.selectedColor;
				tabBarDefault.color = result.footer_menu_txtcolor ? result.footer_menu_txtcolor : tabBarDefault.color;

				if (result.footer_menu_list.length > 0) {
					var arr = [];
					result.footer_menu_list.map((item, i) => {
						arr[i] = {};
						arr[i].text = item.name;
						arr[i].iconPath = item.pic_path;
						arr[i].selectedIconPath = item.hover_pic_path;
						arr[i].pagePath = common.parseUrl(item.url, '', true);
						arr[i].type = item.type ? item.type : 0;
						arr[i].pageType = arr[i].pagePath.goType;
						console.log('arr[i].pagePath', arr[i].pagePath);

						if (!arr[i].pagePath.goPath) {
							arr[i].pagePath = item.url;
							arr[i].isSpecial = true;
						} else if (arr[i].pagePath.goType == 'page') {
							arr[i].pagePath = arr[i].pagePath.goPath;
							arr[i].isSpecial = true;
						} else {
							arr[i].pagePath = arr[i].pagePath.goPath
							if (arr[i].pagePath == '/pages/plat_menu/index') {
								_this.$options.globalData.haveHomePage = true;
							}
						}
					});
					console.log('footer_arr', arr);
					tabBarDefault.list = arr;
					_this.$options.globalData.tabBarHave = true;
				} else {
					_this.$options.globalData.haveHomePage = true;
				}

				_this.$options.globalData.tabBar = tabBarDefault;
				typeof cb == "function" && cb(_this.$options.globalData.config);
				_this.$options.globalData.config = result;

				if (result.config.mobile_head_color) {
					console.log('0000000000000000000777')
					_this.$options.globalData.mainColorFont = `color:${result.config.mobile_head_color} !important;`
					_this.$options.globalData.mainColorBg =
						`background-color:${result.config.mobile_head_color} !important;`
				}
			}
		}
	};
</script>
<style lang="scss">
	@import './mf.scss';
</style>
<style>
	body {
		overflow-x: hidden;
	}

	page {
		font-family: "Helvetica 微软雅黑";
		background-color: #fff;
		font-size: 16px;
	}

	uni-page-body {
		height: 100%;
	}

	.block-in {
		display: inline-block;
	}

	.fl {
		float: left;
	}

	.fr {
		float: right;
	}

	.bw {
		background-color: white !important;
	}

	.btm2f1 {
		border-bottom: 2rpx solid #f1f1f1;
	}

	.cl {
		color: black !important;
	}

	.cr {
		color: red;
	}

	.cg {
		color: green;
	}

	.cb {
		color: blue;
	}

	.c333 {
		color: #333;
	}

	.c666 {
		color: #666;
	}

	.fw {
		font-weight: bold;
	}

	.tdlh {
		text-decoration: line-through;
	}

	.th100 {
		height: 100rpx;
		line-height: 100rpx;
	}

	.th80 {
		height: 80rpx;
		line-height: 80rpx;
	}

	.ml20 {
		margin-left: 20rpx;
	}

	.ml16 {
		margin-left: 16rpx;
	}

	.ml10 {
		margin-left: 10rpx;
	}

	.mt20 {
		margin-top: 20rpx;
	}

	.mb20 {
		margin-bottom: 20rpx;
	}

	.mb10 {
		margin-bottom: 10px;
	}

	.mlr20 {
		margin: 0 20rpx;
	}

	.clearfix:after,
	.cf:after {
		content: '';
		clear: both;
		display: block;
	}


	.container {
		font-size: 28rpx;
		line-height: 1.5;
	}

	.container.empty {
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		padding: 200rpx 0;
		box-sizing: border-box;
	}

	.hide {
		display: none !important;
	}

	.web-share {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999;
		background: rgba(0, 0, 0, .7);
		text-align: center;
	}

	/*块形按钮*/

	.block_btn {
		margin-top: 30rpx;
		background: #56d176;
		text-align: center;
		color: white;
		border: none;
		border-radius: 10rpx;
	}

	/*店铺列表*/

	.dealcard .item {
		background-color: white;
		overflow: hidden;
		position: relative;
		border-bottom: 2rpx solid #f1f1f1;
		padding: 16rpx 16rpx;
		margin-bottom: 16rpx;
	}

	.dealcard .dealcard-img {
		width: 180rpx;
		height: 120rpx;
		border-radius: 4rpx;
		float: left;
		position: absolute;
		overflow: hidden;
	}

	.dealcard .dealcard-img image {
		width: 100%;
		height: 100%;
		border-radius: 4rpx;
	}

	.dealcard .dealcard-img .closeTip {
		position: absolute;
		top: 80rpx;
		width: 100%;
		color: white;
		background: black;
		text-align: center;
	}

	.dealcard .dealcard-block-right {
		margin-left: 200rpx;
	}

	.dealcard .brand {
		font-size: 32rpx;
		line-height: 48rpx;
		color: #333;
	}

	.dealcard .location-right {
		position: absolute;
		top: 16rpx;
		right: 8rpx;
		color: #666;
		font-size: 22rpx;
	}

	.dealcard .title {
		padding-left: 148rpx;
	}

	.dealcard .title,
	.dealcard .price {
		position: relative;
	}

	.dealcard .title.pick {
		margin-top: 28rpx;
	}

	.dealcard .title text,
	.dealcard .price text {
		color: #666;
		font-size: 22rpx;
	}

	.dealcard .title .star {
		vertical-align: middle;
		margin-left: 4rpx;
		position: absolute;
		left: 0px;
		top: 4rpx;
	}

	.dealcard .title .star image {
		width: 24rpx;
		height: 24rpx;
		display: inline-block;
		background-size: 100%;
		margin-right: 4rpx;
	}

	.dealcard .title .location-right {
		top: 4rpx;
	}

	.dealcard .price text.delivery {
		border-left: 2rpx solid #bbb;
		padding-left: 16rpx;
		margin-left: 16rpx;
	}

	.dealcard .price .location-right,
	.dealcard .title.pick .location-right {
		background: #06c1ae;
		color: white;
		padding: 0px 4rpx;
		border-radius: 4rpx;
		font-size: 20rpx;
		top: 8rpx;
	}

	.dealcard .coupon {
		color: #bbb;
		font-size: 22rpx;
		margin-top: 10rpx;
		padding-top: 10rpx;
		border-top: 2rpx solid #f1f1f1;
		overflow: hidden;
	}

	.dealcard .coupon.hasMore {
		height: 88rpx;
	}

	.dealcard .coupon.showMore {
		height: auto;
	}

	.dealcard .coupon view {
		position: relative;
		padding-left: 40rpx;
		line-height: 44rpx;
		padding-right: 120rpx;
		height: 44rpx;
		overflow: hidden;
		word-break: keep-all;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.dealcard .coupon.showMore view {
		height: auto;
		word-break: inherit;
		white-space: inherit;
	}

	.dealcard .coupon view text {
		width: 32rpx;
		height: 32rpx;
		line-height: 32rpx;
		display: inline-block;
		background-color: red;
		position: absolute;
		left: 0;
		top: 6rpx;
		border-radius: 4rpx;
	}

	.dealcard .coupon view text:before {
		content: '惠';
		font-size: 22rpx;
		color: white;
		margin-left: 6rpx;
	}


	text.system_minus {
		background-color: #5d26ea !important;
	}

	text.system_minus:before {
		content: '减' !important;
	}

	text.newuser {
		background-color: #fa2 !important;
	}

	text.system_newuser {
		background-color: #0ec0a8 !important;
	}

	text.newuser:before,
	text.system_newuser:before {
		content: '首' !important;
	}




	.dealcard .coupon .more {
		position: absolute;
		bottom: 16rpx;
		right: 4rpx;
		padding-right: 24rpx;
	}

	.dealcard .coupon .more:after {
		display: inline-block;
		content: "";
		border-bottom: 2rpx solid #bbb;
		border-left: 2rpx solid #bbb;
		width: 8rpx;
		height: 8rpx;
		-webkit-transform: rotate(315deg);
		background-color: transparent;
		position: absolute;
		top: 12rpx;
		right: 8rpx;
	}

	.coupon.showMore .more:after {
		border-top: 2rpx solid #999;
		border-right: 2rpx solid #999;
		border-bottom: none;
		border-left: none;
		top: 18rpx;
	}

	/*购物车*/

	.footer_box {
		position: fixed;
		height: 100rpx;
		line-height: 100rpx;
		color: white;
		background: #393634;
		width: 100%;
		bottom: 0;
		font-size: 28rpx;
	}

	.footer_box text {
		margin-left: 30rpx;
	}

	.footer_box .fr {
		width: 220rpx;
		text-align: center;
		background: #06c1ae;
		position: relative;
	}

	.menulink {
		border-bottom: 2rpx #f1f1f1 solid;
		padding: 16rpx 0;
		position: relative;
	}

	.menulink:last-child {
		border-bottom: none;
	}

	.menulink .ml_left {
		width: 180rpx;
		height: 120rpx;
		border-radius: 4rpx;
		position: relative;
	}

	.menulink .ml_left image {
		width: 100%;
		height: 100%;
		border-radius: 4rpx;
	}

	.menulink .ml_menu {
		margin-left: 200rpx;
		height: 110rpx;
		overflow: hidden;
		padding: 5rpx 0;
	}

	.menulink .ml_menu .tit {
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		height: 64rpx;
		line-height: 32rpx;
		color: #818181;
		font-size: 24rpx;
	}

	.menulink .ml_menu .bot {
		padding-top: 10rpx;
		line-height: 40rpx;
		height: 40rpx;
	}

	.menulink .ml_menu .bot .val {
		color: #fd2a48;
		margin-right: 10rpx;
		height: 40rpx;
	}

	.menulink .ml_menu .bot .mall {
		font-size: 26rpx;
	}

	.menulink .ml_menu .bot .price {
		font-size: 40rpx;
	}

	.menulink .ml_menu .bot .rackrate {
		font-size: 26rpx;
		color: #b7b7b7;
		position: relative;
		margin-top: 5rpx;
		text-decoration: line-through;
	}

	.menulink .ml_menu .bot .sold {
		font-size: 22rpx;
		color: #b7b7b7;
	}

	.menulink .pos {
		width: 80rpx;
		height: 80rpx;
		position: absolute;
		z-index: 9;
		top: 0;
		left: 0;
	}

	.menulink .group {
		background: url(https://hf.pigcms.com/static/wxapp/tuan.png) no-repeat;
		background-size: 80rpx 80rpx;
	}

	.menulink .fight {
		background: url(https://hf.pigcms.com/static/wxapp/ping.png) no-repeat;
		background-size: 80rpx 80rpx;
	}

	.titleDiv {
		border-bottom: 2rpx solid #f1f1f1;
		padding: 32rpx 0;
	}

	.titleDiv .title {
		border-left: 8rpx solid #06c1ae;
		padding-left: 16rpx;
		font-size: 32rpx;
		line-height: 32rpx;
		color: #06c1ae;
	}

	.yesLightIcon {
		display: inline-block;
		width: 36rpx;
		height: 36rpx;
		border-radius: 50%;
		background: #06c1ae;
	}

	.yesLightIcon:after {
		display: block;
		content: "";
		border-top: 2rpx solid #fff;
		border-left: 2rpx solid #fff;
		width: 8rpx;
		height: 16rpx;
		-webkit-transform: rotate(-135deg);
		background-color: transparent;
		margin-left: 14rpx;
		margin-top: 6rpx;
	}

	.yesIcon {
		display: inline-block;
		width: 36rpx;
		height: 36rpx;
		border-radius: 50%;
		background: #cdcdcd;
	}

	.yesIcon:after {
		display: block;
		content: "";
		border-top: 2rpx solid #fff;
		border-left: 2rpx solid #fff;
		width: 8rpx;
		height: 16rpx;
		-webkit-transform: rotate(-135deg);
		background-color: transparent;
		margin-left: 14rpx;
		margin-top: 6rpx;
	}

	/* wangdong */

	.left {
		float: left;
	}

	.right {
		float: right;
	}

	.weui-mask {
		position: fixed;
		z-index: 1000;
		top: 0;
		right: 0;
		left: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.6);
	}

	.weui-dialog {
		position: fixed;
		z-index: 5000;
		width: 90%;
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%, -50%);
		transform: translate(-50%, -50%);
		background: white;
		text-align: center;
	}

	.weui-skin_android .weui-dialog__hd {
		text-align: left;
	}

	.weui-dialog__hd {
		padding: 1.3em 1.6em 0.5em;
	}

	.weui-skin_android .weui-dialog__bd {
		color: #808080;
		font-size: 17px;
		text-align: left;
		min-height: 40px;
		line-height: 1.3;
		word-wrap: break-word;
		word-break: break-all;
	}

	.weui-skin_android .weui-dialog__ft {
		display: block;
		padding: 10px;
		position: relative;
		color: #fff;
	}

	/* 微信授权弹层 */

	.auth_btn_bg {
		background-color: rgba(0, 0, 0, 0.4);
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 12999;
	}

	.auth_btn_div {
		background-color: white;
		position: fixed;
		left: 5%;
		width: 90%;
		z-index: 3000;
		top: 50%;
		margin-top: -200rpx;
	}

	.auth_btn_title {
		height: 100rpx;
		font-size: 16px;
		line-height: 100rpx;
		text-align: center;
		border-bottom: 1rpx solid #f1f1f1;
	}

	.auth_btn_content {
		padding: 40rpx 40rpx;
	}

	.auth_btn_content .h2 {
		border-bottom: 1rpx solid #f1f1f1;
		padding-bottom: 16rpx;
		margin-bottom: 20rpx;
		font-size: 28rpx;
	}

	.auth_btn_content .p {
		font-size: 24rpx;
		color: #666;
	}

	.auth_btn_btn_div {
		border-top: 1rpx solid #f1f1f1;
	}

	.auth_btn_btn_div button {
		background: white;
		font-size: 16px;
		color: #2f9833;
		padding: 12rpx 0;
		border: none;
	}

	/* 隐藏scroll-view滚动条 */
	/*::-webkit-scrollbar {
		width: 0;
		height: 0;
		color: transparent;
	}*/

	@font-face {
		font-family: 'iconfont';
		/* project id 792293 */
		src: url('//at.alicdn.com/t/font_792293_o361hu9ju6m.eot');
		src: url('//at.alicdn.com/t/font_792293_o361hu9ju6m.eot?#iefix') format('embedded-opentype'),
			url('//at.alicdn.com/t/font_792293_o361hu9ju6m.woff2') format('woff2'),
			url('//at.alicdn.com/t/font_792293_o361hu9ju6m.woff') format('woff'),
			url('//at.alicdn.com/t/font_792293_o361hu9ju6m.ttf') format('truetype'),
			url('//at.alicdn.com/t/font_792293_o361hu9ju6m.svg#iconfont') format('svg');
	}

	.iconfont {
		font-family: "iconfont" !important;
		font-size: 16px;
		font-style: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	.icon-aixin2:before {
		content: "\e8ab";
	}

	.icon-aixin3:before {
		content: "\e8c3";
	}

	.icon-user:before {
		content: "\e63c";
	}

	.icon-waimai1:before {
		content: "\e6a5";
	}

	.icon-right1:before {
		content: "\e63f";
	}

	.icon-dingdan2:before {
		content: "\e64c";
	}

	.icon-store:before {
		content: "\e64d";
	}

	.icon-yue:before {
		content: "\e6bc";
	}

	.icon-shuoming:before {
		content: "\e6da";
	}

	.icon-left1:before {
		content: "\e64b";
	}

	.icon-feiyong:before {
		content: "\e642";
	}

	.icon-sanjiao:before {
		content: "\e792";
	}

	.icon-gengduo1:before {
		content: "\e643";
	}

	.icon-dingwei5:before {
		content: "\e655";
	}

	.icon-daifukuan:before {
		content: "\e644";
	}

	.icon-kefu1:before {
		content: "\e6f7";
	}

	.icon-more:before {
		content: "\e646";
	}

	.icon-gerenzhongxin:before {
		content: "\e647";
	}

	.icon-kafeibei:before {
		content: "\e803";
	}

	.icon-fangkuang2:before {
		content: "\e653";
	}

	.icon-sjx-r:before {
		content: "\e648";
	}

	.icon-location:before {
		content: "\e649";
	}

	.icon-dingwei11:before {
		content: "\e64a";
	}

	.icon-menu_iconwodecopy:before {
		content: "\e64e";
	}

	.icon-gouxuan1:before {
		content: "\e73b";
	}

	.icon-sangedian:before {
		content: "\e638";
	}

	.icon-gantanhao:before {
		content: "\e680";
	}

	.icon-gantanhao1:before {
		content: "\e635";
	}

	.icon-dianhua1:before {
		content: "\e630";
	}

	.icon-aixin1:before {
		content: "\e6b8";
	}

	.icon-dingwei4:before {
		content: "\e636";
	}

	.icon-che:before {
		content: "\e63a";
	}

	.icon-huiyuan2:before {
		content: "\e637";
	}

	.icon-aixin-copy:before {
		content: "\e6ba";
	}

	.icon-fanhui:before {
		content: "\eba5";
	}

	.icon-left-arrow:before {
		content: "\ec12";
	}

	.icon-right-arrow:before {
		content: "\e633";
	}

	.icon-xiangxia:before {
		content: "\e62f";
	}

	.icon-chahao:before {
		content: "\e627";
	}

	.icon-shangdian:before {
		content: "\e626";
	}

	.icon-star2:before {
		content: "\e622";
	}

	.icon-star1:before {
		content: "\e625";
	}

	.icon-tanhao:before {
		content: "\e61f";
	}

	.icon-zhifubao:before {
		content: "\e632";
	}

	.icon-jiantou-shang-cuxiantiao-fill:before {
		content: "\e6a7";
	}

	.icon-gouwuche3:before {
		content: "\e63b";
	}

	.icon-gouwuche11:before {
		content: "\e631";
	}

	.icon-shangjiantou-:before {
		content: "\e62e";
	}

	.icon-zanwu:before {
		content: "\e624";
	}

	.icon-ditudangqianweizhi:before {
		content: "\e6a6";
	}

	.icon-radio2:before {
		content: "\e671";
	}

	.icon-radio1:before {
		content: "\e6a3";
	}

	.icon-youhui1:before {
		content: "\e620";
	}

	.icon-iconset0143:before {
		content: "\e62c";
	}

	.icon-bianji1:before {
		content: "\ec11";
	}

	/* .icon-returnTop:before {
	  content: "\e669";
	} */

	.icon-xiangshang:before {
		content: "\e670";
	}

	.icon-left:before {
		content: "\e623";
	}

	.icon-right:before {
		content: "\e61e";
	}

	.icon-shop:before {
		content: "\e677";
	}

	.icon-scan1:before {
		content: "\e68a";
	}

	.icon-remind:before {
		content: "\e6b2";
	}

	.icon-goods:before {
		content: "\e6cd";
	}

	.icon-xiaoxi3:before {
		content: "\e679";
	}

	.icon-yuyin5:before {
		content: "\e6c0";
	}

	.icon-arr-top:before {
		content: "\e61b";
	}

	.icon-aixin:before {
		content: "\e667";
	}

	.icon-dingwei3:before {
		content: "\e61d";
	}

	.icon-gengduo:before {
		content: "\e771";
	}

	.icon-sousuo1:before {
		content: "\e6b9";
	}

	.icon-saoyisao1:before {
		content: "\e659";
	}

	.icon-arrow-left:before {
		content: "\e6bd";
	}

	.icon-pengyouquan:before {
		content: "\e6ce";
	}

	.icon-shouye1:before {
		content: "\e68d";
	}

	.icon-sanjiaoR:before {
		content: "\e61a";
	}

	.icon-haibao:before {
		content: "\e619";
	}

	.icon-weixin2:before {
		content: "\e62a";
	}

	.icon-fenxiang:before {
		content: "\e62d";
	}

	.icon-kefu:before {
		content: "\e62b";
	}

	.icon-waimai:before {
		content: "\e621";
	}

	.icon-line:before {
		content: "\e613";
	}

	.icon-star:before {
		content: "\e70b";
	}

	.icon-star-copy:before {
		content: "\ec13";
	}

	.icon-zhekou:before {
		content: "\e612";
	}

	.icon-dianzan:before {
		content: "\e67f";
	}

	.icon-duoyun:before {
		content: "\e617";
	}

	.icon-liaotian:before {
		content: "\e6b7";
	}

	.icon-weixin1:before {
		content: "\e60e";
	}

	.icon-dianhua:before {
		content: "\e60f";
	}

	.icon-jia2:before {
		content: "\e711";
	}

	.icon-cha1:before {
		content: "\e60c";
	}

	.icon-time:before {
		content: "\e634";
	}

	.icon-gonggao:before {
		content: "\e658";
	}

	.icon-zhibo:before {
		content: "\e7e4";
	}

	.icon-car:before {
		content: "\e654";
	}

	.icon-dingwei2:before {
		content: "\e60a";
	}

	.icon-phone:before {
		content: "\e60b";
	}

	.icon-dian:before {
		content: "\e616";
	}

	.icon-sanjiaoL:before {
		content: "\e608";
	}

	.icon-sanjiaoB:before {
		content: "\e68c";
	}

	.icon-hot:before {
		content: "\e660";
	}

	.icon-xialabig:before {
		content: "\e7a2";
	}

	.icon-shijian:before {
		content: "\e610";
	}

	.icon-weixin:before {
		content: "\e629";
	}

	.icon-jia1:before {
		content: "\e607";
	}

	.icon-dabao:before {
		content: "\e61c";
	}

	.icon-tishi:before {
		content: "\e60d";
	}

	.icon-bianji:before {
		content: "\e7a1";
	}

	.icon-jian:before {
		content: "\e7de";
	}

	.icon-jia:before {
		content: "\e692";
	}

	.icon-cha:before {
		content: "\e66f";
	}

	.icon-dianpu:before {
		content: "\e63e";
	}

	.icon-quan:before {
		content: "\e615";
	}

	.icon-gou:before {
		content: "\e611";
	}

	.icon-dingdan1:before {
		content: "\e78e";
	}

	.icon-wode1:before {
		content: "\e606";
	}

	.icon-dui:before {
		content: "\e605";
	}

	.icon-jiantou1:before {
		content: "\e6ea";
	}

	.icon-scan:before {
		content: "\e604";
	}

	.icon-sousuo:before {
		content: "\e618";
	}

	.icon-gouwuche:before {
		content: "\e600";
	}

	.icon-jiesuan:before {
		content: "\e609";
	}

	.icon-locate:before {
		content: "\e602";
	}

	.icon-dingdan:before {
		content: "\e614";
	}

	.icon-shangpin:before {
		content: "\e689";
	}

	.icon-dingwei:before {
		content: "\e676";
	}

	.icon-shoudian:before {
		content: "\e7d0";
	}

	.icon-gouwuche1:before {
		content: "\e7bc";
	}

	.icon-dingwei1:before {
		content: "\e628";
	}

	.icon-jiantou:before {
		content: "\e601";
	}

	.icon-xiala:before {
		content: "\e603";
	}

	.icon-shouye:before {
		content: "\e6aa";
	}

	.icon-shanchu:before {
		content: "\e68e";
	}

	.icon-huanyizu:before {
		content: "\e67b";
	}


	.formidForm {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		width: 100%;
		height: 100%;
		z-index: 10;
		opacity: 0;
	}

	.formidForm .formidBtn {
		width: 100%;
		height: 100%;
	}


	/* 复选框按钮样式 */
	/* #ifdef H5 */
	uni-checkbox .uni-checkbox-input {
		width: 30rpx;
		height: 30rpx;
		border-radius: 50% !important;
		color: #ffffff !important;
	}

	.vote_detail uni-checkbox .uni-checkbox-input {
		width: 44rpx;
		height: 44rpx;
		border-radius: 0% !important;
		color: #ffffff !important;
	}

	.vote_detail uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
		width: 32rpx;
		height: 44rpx;
		line-height: 44rpx;
		text-align: center;
		font-size: 36rpx;
		color: #fff;
		background: transparent;
		transform: translate(-50%, -50%) scale(1);
		-webkit-transform: translate(-50%, -50%) scale(1);
	}

	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
		/* border: none !important; */
		background: #3d7eff;
		border-color: #3d7eff;
	}

	uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
		width: 20rpx;
		height: 20rpx;
		line-height: 20rpx;
		text-align: center;
		font-size: 18rpx;
		color: #fff;
		background: transparent;
		transform: translate(-50%, -50%) scale(1);
		-webkit-transform: translate(-50%, -50%) scale(1);
	}

	/* #endif */
	/* 微信样式 */
	/* #ifdef APP-PLUS ||MP-WEIXIN */
	checkbox .wx-checkbox-input {
		border-radius: 50% !important;
		color: #ffffff !important;
	}

	checkbox .wx-checkbox-input.wx-checkbox-input-checked {
		color: #fff;
		background: #3d7eff;
	}

	.wx-checkbox-input.wx-checkbox-input-checked {
		border: none !important;
	}

	/* #endif */

	.global_mask {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		background: rgba(0, 0, 0, .5);
		z-index: 9;
		-webkit-transition: opacity .3s ease;
		transition: opacity .3s ease;
		transform: translate(0, 100%);
		-webkit-transform: translate(0, 100%);
	}

	.global_mask.active {
		background: rgba(0, 0, 0, .5);
		transform: translate(0, 0);
		-webkit-transform: translate(0, 0);
	}

	.global_mask .mask-content {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		background: #fff;
		-webkit-transition: all .3s ease;
		transition: all .3s ease;
		-webkit-transform: translate(0, 100%);
		transform: translate(0, 100%);
	}

	.global_mask.active .mask-content {
		-webkit-transform: translate(0, 0);
		transform: translate(0, 0);
	}
</style>
